package com.example.springbootdemo.mapper;

import com.example.springbootdemo.entity.MallProductSpec;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MallProductSpecMapper {
    int deleteByPrimaryKey(Long id);

    int insert(MallProductSpec record);

    int insertSelective(MallProductSpec record);

    MallProductSpec selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MallProductSpec record);

    int updateByPrimaryKeyWithBLOBs(MallProductSpec record);

    int updateByPrimaryKey(MallProductSpec record);

    List<MallProductSpec> getSpecList(@Param("startIndex") Integer startIndex, @Param("pageSize") Integer pageSize);

    Integer getCount();

}